#include<iostream>

using namespace std;
class Fraction
{
public:
	friend ostream& operator<<(ostream& cout,  Fraction& p);

	Fraction() :m_a(1), m_b(2) {}
	Fraction operator+(Fraction &p1)
	{
		m_a = p1.m_a + m_a;

		return *this;
	}

	
private:
	int m_a;
	int m_b;

};
ostream& operator<<(ostream &cout, Fraction& p)
{
	cout << p.m_a << "/" << p.m_b << endl;
	return cout;
}
int main()
{
	Fraction m;
	Fraction n;
	Fraction t;
	t = m + n;
	cout << "1/2+1/2 = ";
	cout << t;

	return 0;
}